package com.hl.order.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 打印机列表对象 printer
 * 
 * @author ruoyi
 * @date 2025-08-05
 */
public class Printer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long printerId;

    /** 商家ID */
    @Excel(name = "商家ID")
    private Long printerMerchantId;

    /** 打印机名称 */
    @Excel(name = "打印机名称")
    private String printerName;

    /** 打印机编号 */
    @Excel(name = "打印机编号")
    private String printerCode;

    /** 打印机密钥/识别码 */
    @Excel(name = "打印机密钥/识别码")
    private String printerSecret;

    /** 接单后是否自动打印 */
    @Excel(name = "接单后是否自动打印")
    private String printerAutoPrint;

    /** 打印机品牌 */
    @Excel(name = "打印机品牌")
    private String printerBrand;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date printerCreateTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date printerUpdateTime;

    /** 删除标志（0正常 1删除） */
    @Excel(name = "删除标志", readConverterExp = "0=正常,1=删除")
    private Integer printerDelFlag;

    public void setPrinterId(Long printerId) 
    {
        this.printerId = printerId;
    }

    public Long getPrinterId() 
    {
        return printerId;
    }

    public void setPrinterMerchantId(Long printerMerchantId) 
    {
        this.printerMerchantId = printerMerchantId;
    }

    public Long getPrinterMerchantId() 
    {
        return printerMerchantId;
    }

    public void setPrinterName(String printerName) 
    {
        this.printerName = printerName;
    }

    public String getPrinterName() 
    {
        return printerName;
    }

    public void setPrinterCode(String printerCode) 
    {
        this.printerCode = printerCode;
    }

    public String getPrinterCode() 
    {
        return printerCode;
    }

    public void setPrinterSecret(String printerSecret) 
    {
        this.printerSecret = printerSecret;
    }

    public String getPrinterSecret() 
    {
        return printerSecret;
    }

    public void setPrinterAutoPrint(String printerAutoPrint) 
    {
        this.printerAutoPrint = printerAutoPrint;
    }

    public String getPrinterAutoPrint() 
    {
        return printerAutoPrint;
    }

    public void setPrinterBrand(String printerBrand) 
    {
        this.printerBrand = printerBrand;
    }

    public String getPrinterBrand() 
    {
        return printerBrand;
    }

    public void setPrinterCreateTime(Date printerCreateTime) 
    {
        this.printerCreateTime = printerCreateTime;
    }

    public Date getPrinterCreateTime() 
    {
        return printerCreateTime;
    }

    public void setPrinterUpdateTime(Date printerUpdateTime) 
    {
        this.printerUpdateTime = printerUpdateTime;
    }

    public Date getPrinterUpdateTime() 
    {
        return printerUpdateTime;
    }

    public void setPrinterDelFlag(Integer printerDelFlag) 
    {
        this.printerDelFlag = printerDelFlag;
    }

    public Integer getPrinterDelFlag() 
    {
        return printerDelFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("printerId", getPrinterId())
            .append("printerMerchantId", getPrinterMerchantId())
            .append("printerName", getPrinterName())
            .append("printerCode", getPrinterCode())
            .append("printerSecret", getPrinterSecret())
            .append("printerAutoPrint", getPrinterAutoPrint())
            .append("printerBrand", getPrinterBrand())
            .append("printerCreateTime", getPrinterCreateTime())
            .append("printerUpdateTime", getPrinterUpdateTime())
            .append("printerDelFlag", getPrinterDelFlag())
            .toString();
    }
}
